/* 
 * @(#)AdminServiceImpl.java    Created on Apr 19, 2013
 * Copyright (c) 2013 ZDSoft Networks, Inc. All rights reserved.
 * $Id$
 */
package com.leruan.aasimp.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import com.leruan.aasimp.dao.SensitiveDao;
import com.leruan.aasimp.entity.Sensitive;
import com.leruan.aasimp.entitydto.SensitiveDto;
import com.leruan.aasimp.service.AdminService;

public class AdminServiceImpl implements AdminService {
    @Resource
    private SensitiveDao sensitiveDao;

    public void addSensitive(Sensitive sensitive) {
        sensitiveDao.insertSensitive(sensitive);
    }

    public List<SensitiveDto> getSensitive(String boardId, String sensitiveString, int pageNo) {
        return sensitiveDao.findSensitive(boardId, sensitiveString, pageNo);
    }

    public SensitiveDao getSensitiveDao() {
        return sensitiveDao;
    }

    public void setSensitiveDao(SensitiveDao sensitiveDao) {
        this.sensitiveDao = sensitiveDao;
    }

    public Long getSensitiveTotal(Map<String, String> map) {
        return sensitiveDao.findSensitiveTotal(map);
    }

}
